package com.sangengblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangengblog.domain.ResponseResult;
import com.sangengblog.domain.dto.AddArticleDto;
import com.sangengblog.domain.entity.Article;
import com.sangengblog.domain.vo.ArticleUpdateVo;

/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2024-01-31 16:35:09
 */
public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult list(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getUpdArticle(Long id);

    ResponseResult updArticle(ArticleUpdateVo articleUpdVo);

    ResponseResult delArticle(Long id);
}

